home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / Image & Music Effects / day-of-the-week.izs < prev    next >
Text File  |  2005-07-30  |  3KB  |  86 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Day-of-the-week image displayer
  4. <!/TITLE>
  5.  
  6. <!DESCRIPTION>A script that displays a different image according to the day of the week (ie: one image for Monday, one image for Tuesday etc).
  7. <!/DESCRIPTION> 
  8.  
  9. <!CATEGORY>img and music effects<!/CATEGORY>
  10.  
  11. <!SCRIPT>
  12. <!-- START OF SCRIPT -->
  13. <script>
  14. <!--
  15. <!--Week Of The Day Image Displayer script- By JavaScript Kit (www.javascriptkit.com) More free scripts here-->
  16. var mondayimg="../m1.gif"
  17. var tuesdayimg="../m2.gif"
  18. var wednesdayimg="../m3.gif"
  19. var thursdayimg="../m4.gif"
  20. var fridayimg="../m5.gif"
  21. var saturdayimg="../m6.gif"
  22. var sundayimg="../m7.gif"
  23. var mydate=new Date()
  24. var today=mydate.getDay()
  25. if (today==1)
  26. document.write('<img src="'+mondayimg+'">')
  27. else if (today==2)
  28. document.write('<img src="'+tuesdayimg+'">')
  29. else if (today==3)
  30. document.write('<img src="'+wednesdayimg+'">')
  31. else if (today==4)
  32. document.write('<img src="'+thursdayimg+'">')
  33. else if (today==5)
  34. document.write('<img src="'+fridayimg+'">')
  35. else if (today==6)
  36. document.write('<img src="'+saturdayimg+'">')
  37. else
  38. document.write('<img src="'+sundayimg+'">')
  39. //-->
  40. </script>
  41.  
  42. <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
  43. <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
  44. Kit</a></font></p>
  45. <!-- END OF SCRIPT -->
  46. <!/SCRIPT>
  47.  
  48. <!PREVIEW>
  49. <!-- START OF SCRIPT -->
  50. <script>
  51. <!--
  52. <!--Week Of The Day Image Displayer script- By JavaScript Kit (www.javascriptkit.com) More free scripts here-->
  53. var mondayimg="../m1.gif"
  54. var tuesdayimg="../m2.gif"
  55. var wednesdayimg="../m3.gif"
  56. var thursdayimg="../m4.gif"
  57. var fridayimg="../m5.gif"
  58. var saturdayimg="../m6.gif"
  59. var sundayimg="../m7.gif"
  60. var mydate=new Date()
  61. var today=mydate.getDay()
  62. if (today==1)
  63. document.write('<img src="'+mondayimg+'">')
  64. else if (today==2)
  65. document.write('<img src="'+tuesdayimg+'">')
  66. else if (today==3)
  67. document.write('<img src="'+wednesdayimg+'">')
  68. else if (today==4)
  69. document.write('<img src="'+thursdayimg+'">')
  70. else if (today==5)
  71. document.write('<img src="'+fridayimg+'">')
  72. else if (today==6)
  73. document.write('<img src="'+saturdayimg+'">')
  74. else
  75. document.write('<img src="'+sundayimg+'">')
  76. //-->
  77. </script>
  78.  
  79. <p align="center"><font face="arial" size="-2">This free script provided by</font><br>
  80. <font face="arial, helvetica" size="-2"><a href="http://javascriptkit.com">JavaScript
  81. Kit</a></font></p>
  82.  
  83. <!-- END OF SCRIPT -->
  84. <!/PREVIEW>
  85.  
  86. <!RELATED>NONE<!/RELATED>